package com.cn.distributor.mapper;


import com.cn.distributor.entity.Enterprise;
import com.cn.distributor.entity.Personal;
import com.cn.distributor.vo.AuditingVo;
import com.cn.distributor.vo.DistributorIdVo;
import org.springframework.stereotype.Component;

import javax.xml.soap.Text;
import java.util.List;


@Component
public interface AuditingMapper {

    List<Enterprise> findEnterprise(Enterprise enterprise);

    List<Personal> findPersonal(Personal personal);

    long auditSuccessful(DistributorIdVo distributorIdVo,int a);

    long rejectionReview(DistributorIdVo distributorIdVo, Text text);

    void addShop();

    AuditingVo findByDistributor(DistributorIdVo distributorIdVo);

    void addEnterPrise(Enterprise enterprise);

    Personal findByIdPersonal(DistributorIdVo distributorIdVo);

    void addPersonal(Personal personal);

    Enterprise findByIdEnterPrise(DistributorIdVo distributorIdVo);

    int getVersion(DistributorIdVo distributorIdVo);
}
